Ваша задача — воспроизвести функционал метода title(), создав функцию emphasise(). Метод title() делает заглавной первую букву каждого слова, все остальные буквы переводятся в нижний регистр.
Примечания:
- С цифрами и прочими символами ничего делать не надо, работаем только с буквами. - Пожалуйста, не используйте сам метод title()!
Примеры:
emphasise("hello world") ➞ "Hello World" emphasise("GOOD MORNING") ➞ "Good Morning" emphasise("99 red balloons!") ➞ "99 Red Balloons!"
Ваша задача — воспроизвести функционал метода title(), создав функцию emphasise(). Метод title() делает заглавной первую букву каждого слова, все остальные буквы переводятся в нижний регистр.
Примечания:
- С цифрами и прочими символами ничего делать не надо, работаем только с буквами. - Пожалуйста, не используйте сам метод title()!
Примеры:
emphasise("hello world") ➞ "Hello World" emphasise("GOOD MORNING") ➞ "Good Morning" emphasise("99 red balloons!") ➞ "99 Red Balloons!"
Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.
The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.